package cn.lyjuan.payment.third.base.pay.vo.res;


import cn.lyjuan.payment.third.base.pay.enums.SimpleStatusEnum;

public class NotifyRes extends BaseRes
{
    /**
     * <p>
     * 交易是否成功：<br />
     * true 交易成功<br />
     * false 交易失败
     * </p>
     */
    protected SimpleStatusEnum status;

    /**
     * 支付渠道对交易的状态
     */
    protected String chlStatus;

    /**
     * 支付平台交易流水号
     */
    protected String tranNo;

    /**
     * 响应给支付平台的信息
     */
    protected String resMsg;

    public NotifyRes()
    {
        super(true);
    }

    public NotifyRes(SimpleStatusEnum status, String resMsg)
    {
        this.status = status;
        this.resMsg = resMsg;
    }

    public NotifyRes(SimpleStatusEnum status, String chlStatus, String tranNo, String resMsg)
    {
        this.status = status;
        this.chlStatus = chlStatus;
        this.tranNo = tranNo;
        this.resMsg = resMsg;
    }

    public SimpleStatusEnum getStatus()
    {
        return status;
    }

    public void setStatus(SimpleStatusEnum status)
    {
        this.status = status;
    }

    public String getChlStatus()
    {
        return chlStatus;
    }

    public void setChlStatus(String chlStatus)
    {
        this.chlStatus = chlStatus;
    }

    public String getTranNo()
    {
        return tranNo;
    }

    public void setTranNo(String tranNo)
    {
        this.tranNo = tranNo;
    }

    public String getResMsg()
    {
        return resMsg;
    }

    public void setResMsg(String resMsg)
    {
        this.resMsg = resMsg;
    }

    @Override
    public String toString()
    {
        return "NotifyRes{" +
                "status=" + status +
                ", chlStatus='" + chlStatus + '\'' +
                ", tranNo='" + tranNo + '\'' +
                ", resMsg='" + resMsg + '\'' +
                ", isSucc=" + isSucc +
                ", msg='" + msg + '\'' +
                '}';
    }
}
